package com.validate.advocatevalidator;

import com.validate.annotation.ValidatorsHandler;
import java.util.List;

/**
 * 单字段校验列表 一个字段会被多个校验器校验
 */
public class ValidatorsList {

	/**
	 * 字段
	 */
	private String field;

	/**
	 * 值
	 */
	private Object value;

	/**
	 * 校验器
	 */
	private List<ValidatorsHandler> listValidatorsHandler;

	/**
	 * 父字段
	 */
	private String paterfield;

	/**
	 * 获取 字段
	 */
	public String getField() {
		return this.field;
	}

	/**
	 * 设置 字段
	 */
	public ValidatorsList setField(String field) {
		this.field = field;
		return this;
	}

	/**
	 * 获取 值
	 */
	public Object getValue() {
		return this.value;
	}

	/**
	 * 设置 值
	 */
	public ValidatorsList setValue(Object value) {
		this.value = value;
		return this;
	}

	/**
	 * 获取 校验器
	 */
	public List<ValidatorsHandler> getListValidatorsHandler() {
		return this.listValidatorsHandler;
	}

	/**
	 * 设置 校验器
	 */
	public ValidatorsList setListValidatorsHandler(List<ValidatorsHandler> listValidatorsHandler) {
		this.listValidatorsHandler = listValidatorsHandler;
		return this;
	}

	/**
	 * 父字段
	 */
	public String getPaterfield() {
		return paterfield;
	}

	/**
	 * 父字段
	 */
	public ValidatorsList setPaterfield(String paterfield) {
		this.paterfield = paterfield;
		return this;
	}
}
